import config from '../../utils/config';
import apiCreator from '../../utils/apiCreator';

const api = apiCreator();

export default {
  // 获取估值时间
  getTime: (query) => api.get(`${config.interfaces.type5}portfolio-server/entrustedinvestment/getTime`, query),
  // 获取估值数据
  findanalysis: (query) => api.get(`${config.interfaces.type5}portfolio-server/entrustedinvestment/findanalysis`, query),
  // 查询资产管理计划表格
  queryTable: (query) => api.get(`${config.interfaces.type1}zgtzptPlanInfoPro/queryTable`, query),
  // 保存或编辑资产管理计划
  saveData: (query) => api.post(`${config.interfaces.type1}zgtzptPlanInfoPro/saveData`, query),
  // 获取资产管理计划详情
  queryOne: (query) => api.get(`${config.interfaces.type1}zgtzptPlanInfoPro/queryOne`, query),
  // 删除资产管理计划数据
  deleteOne: (query) => api.get(`${config.interfaces.type1}zgtzptPlanInfoPro/deleteOne`, query),
  // 估值解析保存
  saveValuateAnalysis: (query) => api.post(`${config.interfaces.type5}portfolio-server/entrustedinvestment/saveanalysis`, query),
  // 展期
  deferDate: (query) => api.get(`${config.interfaces.type1}zgtzptPlanInfoPro/saveById`, query),
};
